<template>
  <div>
    <h1 class="header">Header</h1>
    <p>{{name}},{{age}},{{sex}}</p>
  </div>
</template>

<script>
export default {
  name: "MyHeader",
  // 直接解构出来
  props: ["name",'age','sex'],
};
</script>

<style>
.header {
  background-color: plum;
}
</style>